package com.wing.productionPlan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.productionPlan.model.entity.ProQualityWay;
import com.wing.productionPlan.model.request.ProQualityWayAddForm;
import com.wing.productionPlan.model.response.ProQualityWayVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface ProQualityWayService extends IService<ProQualityWay> {

    /**
     * 查询
     * @param pg
     * @param map
     * @return
     */
    Page<ProQualityWayVo> pageList4app(Page<ProQualityWayVo> pg, Map map);

    /**
     * 添加
     * @param proQualityTaskAddForm
     * @return
     */
    JsonResult add(ProQualityWayAddForm proQualityTaskAddForm);

    /**
     * 查询对应code是否存在
     * @param qualityCode
     * @return
     */
    List<ProQualityWayVo> getProQualityWayVoByCode(String qualityCode);

}
